package com.bocai.service;

import com.bocai.bean.CustomEvent;
import com.bocai.utils.ResponseData;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import java.util.List;
import java.util.Map;

public interface ICustomEventService {

    CustomEvent selectEvent(Integer eventId);

    int updateEvent(CustomEvent event);

    int insertEvent(CustomEvent event);

    ResponseData setEvent(Integer eventId,
                          Integer isHot,
                          Integer isEnable,
                          String ruleTypes,
                          String homeName,
                          String awayName,
                          String eventTime,
                          ResponseData data);

    //批量设置
    ResponseData setEvents(JSONArray events, ResponseData data);

    int updateEventStatus(CustomEvent event);

    List<CustomEvent> selectEvents(CustomEvent event);
}
